﻿var oEditor = window.parent.InnerDialogLoaded();
var FCKLang = oEditor.FCKLang;

window.onload = function() {
	oEditor.FCKLanguageManager.TranslatePage(document);
}

// 
function cardClick(cardID) {
	var obj;
	for ( var i = 1; i < 7; i++) {
		obj = document.all("card" + i);
		obj.style.backgroundColor = "#3A6EA5";
		obj.style.color = "#FFFFFF";
	}
	obj = document.all("card" + cardID);
	obj.style.backgroundColor = "#FFFFFF";
	obj.style.color = "#3A6EA5";

	for ( var i = 1; i < 7; i++) {
		obj = document.all("content" + i);
		obj.style.display = "none";
	}
	obj = document.all("content" + cardID);
	obj.style.display = "";
}

function Ok() {
	return true;
}

// preview
function SymbolOver(charValue) {
	// preview.innerHTML = charValue;
}

// 
function SymbolClick(charValue, cssStyle) {
	if (!charValue)
		return;
	oEditor.FCK.InsertHtml('<span class="' + cssStyle + '">' + charValue + '</span>');
	window.parent.Cancel();
	return true;
}